using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Object = UnityEngine.Object;

namespace YouYou
{
    /// <summary>
    /// 资源加载管理器
    /// </summary>
    public class ResourceLoaderManager
    {
        public ResourceLoaderManager()
        {
        }

        public T LoadMainAsset<T>(string assetFullName) where T : Object
        {
            string[] temps = assetFullName.Split('.');
            T value = Resources.Load<T>(temps[0]);
            if (value == null) GameEntry.LogError(LogCategory.Resource, "资源加载失败==" + assetFullName);
            return value;
        }
    }
}